Skip to main content

Integrations

making CICD pipeline and Connecting Github​

1- Creating Docker Account​

2- Setting DockerHub Token​

Settings → Secrets and variables → Actions → add both secrets here as DOCKERHUB_USERNAME and DOCKERHUB_TOKEN Visit this article to create a docker account : https://hashlearns.pages.dev/docs/DevOps%20&%20Cloud/Docker/Dockerization-using-CI-CD/Dockerhub-connection-with-dockerimage

3- Creating CICD Pipeline ​

We will be creating 2 CICD pipelines : 1 to dockerize the application and 2- to Put the docker image on AWS EC2 Machine

Dockerization Pipeline (from github code -> Docker Image on DockerHub) :​

check https://github.com/hashcodes7/Google_ADK_Business_ops/blob/main/.github/workflows/build.yml

If all well and done you should find your docker like this 643

Deployment​

To deploy using CICD we need to procure 4 secret variables and add them to the repository secrets

Secret NameWhat it isExample ValueWhere to find it
AWS_ACCESS_KEY_IDIAM User Access KeyAKIAIOSFODNN7EXAMPLEGenerated in AWS IAM
AWS_SECRET_ACCESS_KEYIAM User Secret KeywJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYGenerated in AWS IAM
AWS_REGIONAWS Region of your EC2us-east-1 or ap-south-1Top-right corner of AWS Console
EC2_INSTANCE_IDID of your EC2 instancei-0123456789abcdef0EC2 Console → Instances table